package com.hua.ui;

import javax.swing.JPanel;
import javax.swing.JLabel;

import java.awt.Image;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import java.awt.Font;

public class backup extends JPanel {
	private int width = 300, height = 300;
	private ImageIcon image;
//	public static void main(String[] args) {
//        JFrame frame = new JFrame();
//        files main = new files();
//        frame.getContentPane().add(main);
//        frame.setSize(500, 500);
//        frame.setVisible(true);
//	}
	public  backup() {
		setLayout(null);

		JPanel panel = new JPanel();
		panel.setBounds(10, 10, 888, 480);
		add(panel);
		panel.setLayout(null);

		JLabel lblNewLabel = new JLabel("");
		lblNewLabel.setBounds(240, 37, 300, 300);
		panel.add(lblNewLabel);
		image = new ImageIcon("src/main/resources/images/backup.png");
		// image.setImage(image.getImage().getScaledInstance(width,
		// height,Image.SCALE_DEFAULT));
		Image img = image.getImage();
		img = img.getScaledInstance(width, height, Image.SCALE_DEFAULT);
		image.setImage(img);
		lblNewLabel.setIcon(image);

		JButton btnNewButton = new JButton("开发中ing");
		btnNewButton.setBounds(314, 391, 169, 50);
		panel.add(btnNewButton);
		
		JLabel lblNewLabel_1 = new JLabel("推荐使用SpringBoot+Vue3构建的在线版本！");
		lblNewLabel_1.setFont(new Font("Alimama ShuHeiTi", Font.PLAIN, 15));
		lblNewLabel_1.setBounds(250, 350, 318, 28);
		panel.add(lblNewLabel_1);
		
	}
}
